package com.example.project.service.impl;


import com.example.project.dao.IEmployeeDao;
import com.example.project.entity.Employee;
import com.example.project.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;


    @Component
    public class IEmployeeServiceImpl implements IEmployeeService {
        @Autowired
        private IEmployeeDao employeeDao;

        @Override
        public int insertEmployee(Employee employee) {
            return employeeDao.insertEmployee(employee);
        }

        @Override
        public int deleteEmployee(Employee employee) {
            return employeeDao.deleteEmployee(employee);
        }

        @Override
        public int updateEmployee(Employee employee) {
            return employeeDao.updateEmployee(employee);
        }
        public List<Employee> getAllEmployee(Employee employee){
            return employeeDao.getAllEmployee(employee);
        }

    }

